﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlScriptVault.Model
{
    [Serializable]
    public class ServerGroup
    {
        private readonly List<Server> _servers;

        public ServerGroup()
        {
            _servers = new List<Server>();
        }

        public string Name { get; set; }

        public ICollection<Server> Servers
        {
            get
            {
                return new ReadOnlyCollection<Server>(_servers);
            }
        }

        public void Add(Server server)
        {
            _servers.Add(server);
        }
    }
}
